package com.example.shopping.controller;

import com.example.shopping.pojo.Products;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @description: TODO
 * @author: uu
 * @data: 2023/6/29 18:59
 * @version: v1.0
 */
@RestController
public class CustomersController {

    @Autowired
    com.example.shopping.service.Products products;
    @GetMapping("/browseProducts")
    public List<Products> browse(){
        List<Products> products1 = products.findProducts();
        return products1;
    }

}
